package com.njits.traffic.oscache;
public class TestObjectCache {
	public static void main(String[] args) {
		CacheManager cm = CacheManager.getInstance();
		TestObjectCache test = new TestObjectCache();
		test.print(cm);
	}

	public void print(CacheManager cm) {
		User user = null;
		for (int i = 0; i < 1000; i++) {
			if (i == 10) {
				cm.removeUser(5 + "");
			}
			if (i == 20) {
				cm.removeAllNews();
			}
			try {
				Thread.sleep(100);
			} catch (Exception e) {
			}
		}
	}
}
